<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">
	<title>ES后台管理</title>
	<meta name="renderer" content="webkit">
	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
	<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
	<meta name="apple-mobile-web-app-status-bar-style" content="black">
	<meta name="apple-mobile-web-app-capable" content="yes">
	<meta name="format-detection" content="telephone=no">
	<link rel="stylesheet" href="__PUBLIC__/layui/css/layui.css" media="all" />
	<link rel="stylesheet" href="__PUBLIC__/font-awesome/css/font-awesome.min.css">
	<link rel="stylesheet" href="__ADMIN__/css/frame.css" media="all" />
	<script type="text/javascript" src="__PUBLIC__/layui/layui.js"></script>
	<script type="text/javascript" src="__PUBLIC__/js/jquery-1.9.1.min.js"></script>
    
	
	
</head>
<body class="childrenBody" style="padding-bottom:40px;">

<blockquote class="layui-elem-quote news_search">

        <div class="layui-inline">
		
<ob_link><a class="layui-btn layui-btn-normal Add_btn" data-title="添加api接口" data-url="<?php echo es_url('apiAdd'); ?>"><i class="fa fa-plus"></i> 新 增</a></ob_link>
		
</div>

</blockquote>
	<div class="layui-form users_list">
	  	<table class="layui-table">
				<thead>
                    <tr>
                 
	    <th>名称</th>
                <th>分组</th>
                <th>类型</th>
                <th>地址</th>
                <th>状态</th>
                <th>研发者</th>
                <th>排序</th>
                <th>操作</th>

                    </tr>
                    </thead>
                       <?php if(!empty($list)): ?>
                  <tbody class="users_content">
                    <?php if(is_array($list)): if( count($list)==0 ) : echo "" ;else: foreach($list as $key=>$vo): ?>
               <td><?php echo $vo['name']; ?></td>
                  <td><?php echo $vo['group_name']; ?></td>
                  <td><?php echo $vo['request_type_text']; ?></td>
                  <td><?php echo $vo['api_url']; ?></td>
                  <td><?php echo $vo['api_status_text']; ?></td>
                  <td><?php echo $vo['developer_text']; ?></td>
                  <td><?php echo $vo['sort']; ?></td>
                        <td>
                               <ob_link><a data-title="编辑api接口"  data-url="<?php echo es_url('apiEdit',['id'=>$vo['id']]); ?>" class="layui-btn layui-btn-xs users_edit"><i class="fa fa-edit"></i>编辑</a></ob_link>
                     
                      <ob_link><a class="layui-btn layui-btn-danger layui-btn-xs users_del" href="javascript:;"  data-url="<?php echo es_url('apiDel', array('id' => $vo['id'])); ?>"><i class="fa fa-trash-o"></i> 删 除</a></ob_link>
                 
                      </td>
                    </tr>
                    <?php endforeach; endif; else: echo "" ;endif; ?>
                    </tbody>
                      <?php else: ?>
       <tbody class="users_content">
       <tr class="odd"><td colspan="8" class="text-center" valign="top"><?php echo webconfig('empty_list_describe'); ?></td></tr>
       </tbody>
      <?php endif; ?>
                </table>
	</div>


			

  
<div class="btable-paged" >
<div class="layui-main">
	<?php echo $page; ?>
</div>
</div>
 


	
	
	<script type="text/javascript" src="__ADMIN__/js/main.js"></script>
		
	
<!--页面JS脚本-->

</body>
</html>